<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>添加管理员角色 - Powered By Betou</title>
<meta name="author" content="Betou Team" />
<meta name="copyright" content="Betou" />
<#include "../../head.html"/>
<script type="text/javascript">
$().ready(function() {
	var $inputForm = $("#inputForm");
	var $selectAll = $("#inputForm .selectAll");
	
	 //表单验证
	$inputForm.validate({
		rules: {
			name: "required",
			level:{
				required:true,
				digits: true,
				min:1
			},
			perms: "required"
		}
	});

	$selectAll.click(function() {
		var $this = $(this);
		var $thisCheckbox = $this.closest("tr").find(":checkbox");
		if ($thisCheckbox.filter(":checked").size() > 0) {
			$thisCheckbox.prop("checked", false);
		} else {
			$thisCheckbox.prop("checked", true);
		}
		return false;
	});
});
</script>
<style type="text/css">
.authorities label {
	min-width: 100px;
	_width: 100px;
	display: block;
	float: left;
	padding-right: 4px;
	_white-space: nowrap;
}
</style>
</head>
<body class="content">
	<div class="path">
		<a href="../index.jspx">首页</a> &raquo; 添加管理员角色
	</div>
	<form id="inputForm" action="o_save.jspx" method="post">
		<table class="input">
			<tr>
				<th>
					<span class="requiredField">*</span>名称:
				</th>
				<td>
					<input type="text" name="name" class="text" maxlength="100" />
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField">*</span>等级:
				</th>
				<td>
					<input type="text" name="level" class="text" maxlength="100" />
				</td>
			</tr>
			<tr>
				<th><span class="requiredField">*</span>初始化角色:</th>
				<td>
					<select name="allowInit">
						<option value="false">否</option>
						<option value="true">是</option>
					</select>
				</td>
			</tr>
			<tr>
				<th>描述:</th>
				<td>
					<input type="text" name="description" class="text" maxlength="100" />
				</td>
			</tr>
			<tr>
				<td colspan="2">&nbsp;</td>
			</tr>
			<#include "perms.html"/>
			<tr>
				<th>&nbsp;</th>
				<td>
					<input type="submit" class="button" value="确&nbsp;&nbsp;定" />
					<input type="button" class="button" value="返&nbsp;&nbsp;回" onclick="location.href='v_list.jspx'" />
				</td>
			</tr>
		</table>
	</form>
	<#include "../../footer.html"/>
</body>
</html>